import Vue from "vue";
import Router from "vue-router";
// 登录组件
import Login from "./views/Login.vue";

///数据
import Index from "./views/index/Index.vue"; //数据
import index from "@/components/index/Index.vue"; //数据

//管理
// import Admin from "./views/Admin.vue";
const Admin = () => import(/* webpackChunkName: "admin" */ "./views/Admin.vue");
const log = () => import(/* webpackChunkName: "admin" */ "@/components/admin/log.vue"); //操作日志
const admin = () => import(/* webpackChunkName: "admin" */ "@/components/admin/admin.vue"); //管理员
const Menu = () => import(/* webpackChunkName: "admin" */ "@/components/admin/Menu.vue"); //栏目
const role = () => import(/* webpackChunkName: "admin" */ "@/components/admin/role.vue"); ////角色
const roleAdd = () => import(/* webpackChunkName: "admin" */ "@/components/admin/roleAdd.vue"); ////角色添加
const roleEdit = () => import(/* webpackChunkName: "admin" */ "@/components/admin/roleEdit.vue"); ////角色编辑

const reward = () => import(/* webpackChunkName: "admin" */ "@/components/admin/reward.vue"); ////RechargeRecord

const smsjl = () => import(/* webpackChunkName: "admin" */ "@/components/config/smsRecord.vue");
const smscz = () => import(/* webpackChunkName: "admin" */ "@/components/config/smsRecharge.vue");

const plugin = () => import(/* we1bpackChunkName: "admin" */ "@/components/admin/plugin.vue"); //插件管理
const pluginEdit = () => import(/* we1bpackChunkName: "admin" */ "@/components/admin/pluginEdit.vue"); //插件管理编辑
const cuxiao = () => import(/* we1bpackChunkName: "admin" */ "@/components/admin/cuxiao.vue"); //插件管理编辑
const mymodel = () => import(/* we1bpackChunkName: "admin" */ "@/components/admin/mymodel.vue"); //我的模块
const clear = () => import(/* we1bpackChunkName: "admin" */ "@/components/admin/clear.vue"); //清空数据

// import addrole from "@/components/admin/addrole.vue";
//隐藏设置action=all

// 设置
import Config from "./views/Config.vue"; //设置
const config = () => import(/* webpackChunkName: "config" */ "@/components/config/config.vue"); //设置
const home = () => import(/* webpackChunkName: "config" */ "@/components/config/home.vue"); //首页设置
const member = () => import(/* webpackChunkName: "config" */ "@/components/config/member.vue"); //会员中心
const qr = () => import(/* webpackChunkName: "config" */ "@/components/config/qr.vue"); //二维码海报
const pay = () => import(/* webpackChunkName: "config" */ "@/components/config/pay.vue"); //支付   弹出
const class_list = () => import(/* webpackChunkName: "config" */ "@/components/config/class.vue"); //设置
const mission = () => import(/* webpackChunkName: "config" */ "@/components/config/mission.vue"); //新手任务奖积分
const lgconfig = () =>
  import(
    /* webpackChunkName: "config" */
    "@/components/config/loginconfig.vue"
  ); //新手任务奖积分

const red_rule = () =>
  import(
    /* webpackChunkName: "config" */
    "@/components/config/red_rule.vue"
  ); //消费红包规则
// import addpay from "@/components/config/addpay.vue";        //修改支付   弹出
//提现设置action=withdraw
//短信设置action=sms

//物流
// import Mail from "./views/Mail.vue";
const Mail = () => import(/* webpackChunkName: "mail" */ "./views/Mail.vue");
const mail = () => import(/* webpackChunkName: "mail" */ "@/components/mail/mail.vue"); //物流
// import addmail from "@/components/mail/addmail.vue";        //添加物流   弹出
const area = () => import(/* webpackChunkName: "mail" */ "@/components/mail/area.vue"); //物流地区
const addarea = () => import(/* webpackChunkName: "mail" */ "@/components/mail/addarea.vue"); //添加物流地区   弹出
const extract = () => import(/* webpackChunkName: "mail" */ "@/components/mail/extract.vue"); //物流地区
const addextract = () => import(/* webpackChunkName: "mail" */ "@/components/mail/addextract.vue"); //添加物流地区   弹出
const extract_control = () => import(/* webpackChunkName: "mail" */ "@/components/mail/extract_control.vue"); //添加物流地区   弹出

//IM战队
const IMteam = () => import(/* webpackChunkName: "mail" */ "./views/IMteam.vue");
const team = () => import(/* webpackChunkName: "mail" */ "@/components/imteam/team.vue"); //战队管理
const teamUser = () => import(/* webpackChunkName: "mail" */ "@/components/imteam/teamUser.vue"); //战队成员管理

//微信
// import Wechat from "./views/Wechat.vue"; //微信
const Wechat = () => import(/* webpackChunkName: "mail" */ "./views/Wechat.vue");
//微信设置action=wx
const wxinfo = () => import(/* webpackChunkName: "mail" */ "@/components/wechat/wxinfo.vue"); //消息管理  √
const wxsms = () => import(/* webpackChunkName: "mail" */ "@/components/wechat/wxsms.vue"); //微信消息
const wxfollow = () => import(/* webpackChunkName: "mail" */ "@/components/wechat/wxfollow.vue"); //首次关注
const addwxfollow = () => import(/* webpackChunkName: "mail" */ "@/components/wechat/addwxfollow.vue"); //首次关注  弹出
const wxtext = () => import(/* webpackChunkName: "mail" */ "@/components/wechat/wxtext.vue"); //自动回复
const addwxtext = () => import(/* webpackChunkName: "mail" */ "@/components/wechat/addwxtext.vue"); //自动回复  跳转
const wxmenu = () => import(/* webpackChunkName: "mail" */ "@/components/wechat/wxmenu.vue"); //微信菜单
const addwxmenu = () => import(/* webpackChunkName: "mail" */ "@/components/wechat/addwxmenu.vue"); //微信菜单    弹出
const material = () => import(/* webpackChunkName: "mail" */ "@/components/wechat/material.vue"); //微信素材 √
const addmaterial = () => import(/* webpackChunkName: "mail" */ "@/components/wechat/addmaterial.vue"); //添加微信素材 跳转 √
const templet = () => import(/* webpackChunkName: "mail" */ "@/components/wechat/templet.vue"); //消息类别 √
const addtemplet = () => import(/* webpackChunkName: "mail" */ "@/components/wechat/addtemplet.vue"); //信息类别    弹出 √
const information = () => import(/* webpackChunkName: "mail" */ "@/components/wechat/information.vue"); //信息管理
const addinformation = () =>
  import(
    /* webpackChunkName: "mail" */
    "@/components/wechat/addinformation.vue"
  ); //信息管理    弹出
const firstFollow = () => import(/* webpackChunkName: "mail" */ "@/components/wechat/firstFollow.vue"); //信息管理
//资讯
// import News from "./views/News.vue"; //资讯
const News = () => import(/* webpackChunkName: "news" */ "./views/News.vue");
const news = () => import(/* webpackChunkName: "news" */ "@/components/news/news.vue"); //资讯
const newss = () => import(/* webpackChunkName: "news" */ "@/components/news/newss.vue"); //资讯
const addnews = () => import(/* webpackChunkName: "news" */ "@/components/news/addnews.vue"); //添加资讯
const newscate = () => import(/* webpackChunkName: "news" */ "@/components/news/newscate.vue"); //资讯分类
const addnewscate = () => import(/* webpackChunkName: "news" */ "@/components/news/addnewscate.vue"); //资讯分类  弹出
const agreement = () => import(/* webpackChunkName: "news" */ "@/components/news/agreement.vue"); // 更新 协议

const packet = () => import(/* webpackChunkName: "news" */ "@/components/news/packet.vue"); //发布红包
const packet_ls = () => import(/* webpackChunkName: "news" */ "@/components/news/packet_ls.vue"); //红包发放

// 助力
const Help = () => import(/* webpackChunkName: "news" */ "./views/Help.vue");
const actionlist = () => import(/* webpackChunkName: "news" */ "@/components/help/actionlist.vue"); //活动列表
const help = () => import(/* webpackChunkName: "news" */ "@/components/help/help.vue"); //助力列表
const helpuser = () => import(/* webpackChunkName: "news" */ "@/components/help/helpuser.vue"); //助力列表
//用户
// import User from "./views/User.vue";
const User = () => import(/* webpackChunkName: "user" */ "./views/User.vue");
const user = () => import(/* webpackChunkName: "user" */ "@/components/user/user.vue"); //用户管理
const adduser = () => import(/* webpackChunkName: "user" */ "@/components/user/adduser.vue"); //添加用户  弹出
const money = () => import(/* webpackChunkName: "user" */ "@/components/user/money.vue"); //流水
const supplier = () => import(/* webpackChunkName: "user" */ "@/components/user/supplier.vue"); //供应商
const checksupplier = () => import(/* webpackChunkName: "user" */ "@/components/user/checksupplier.vue"); //审核供应商
const checksupplierdetails = () =>
  import(
    /* webpackChunkName: "user" */
    "@/components/user/CheckSupplierDetails.vue"
  ); //审核供应商
const supplierslide = () =>
  import(
    /* webpackChunkName: "user" */
    "@/components/supplier/supplier-slide.vue"
  ); //供应商幻灯片

const recharge = () => import(/* webpackChunkName: "user" */ "@/components/user/recharge.vue"); //充值

const recharge_import = () => import(/* webpackChunkName: "user" */ "@/components/user/recharge_import.vue"); //充值
const addrecharge = () => import(/* webpackChunkName: "user" */ "@/components/user/addrecharge.vue"); //查看充值
const editrecharge = () => import(/* webpackChunkName: "user" */ "@/components/user/RechargeEdit.vue"); //编辑充值
const withdraw_ye = () => import(/* webpackChunkName: "user" */ "@/components/user/withdraw_ye.vue"); //提现
const withdraw_ye_edit = () =>
  import(
    /* webpackChunkName: "user" */
    "@/components/user/withdraw_ye_edit.vue"
  ); //提现余额编辑
const addwithdraw_ye = () => import(/* webpackChunkName: "user" */ "@/components/user/addwithdraw_ye.vue"); //查看提现
const withdraw_jf = () => import(/* webpackChunkName: "user" */ "@/components/user/withdraw_jf.vue"); //提现
const addwithdraw_jf = () => import(/* webpackChunkName: "user" */ "@/components/user/addwithdraw_jf.vue"); //查看提现
const withdraw_yj = () => import(/* webpackChunkName: "user" */ "@/components/user/withdraw_yj.vue"); //提现
const addwithdraw_yj = () => import(/* webpackChunkName: "user" */ "@/components/user/addwithdraw_yj.vue"); //查看提现
const msg = () => import(/* webpackChunkName: "user" */ "@/components/user/msg.vue"); //留言
const msg_edit = () => import(/* webpackChunkName: "user" */ "@/components/user/msg_edit.vue"); //留言
const letter = () => import(/* webpackChunkName: "user" */ "@/components/user/letter.vue"); //站内信
const user_info = () => import(/* webpackChunkName: "user" */ "@/components/user/user_info.vue"); //详情
const user_rank = () => import(/* webpackChunkName: "user" */ "@/components/user/user_rank.vue"); //详情
const user_import = () => import(/* webpackChunkName: "user" */ "@/components/user/user_import.vue"); //用户导入
const user_in_record = () => import(/* webpackChunkName: "user" */ "@/components/user/user_in_record.vue"); //用户导入
const user_complaint = () => import(/* webpackChunkName: "user" */ "@/components/user/complaint.vue"); //用户导入

const deal_account = () => import(/* webpackChunkName: "user" */ "@/components/user/deal_account.vue"); //批量封号

const service = () =>
  import(
    /* webpackChunkName: "user" */
    "@/components/user/service/service.vue"
  ); //批量封号

// 权益包
const LockMoney = () => import(/* webpackChunkName: "lock_money" */ "./views/LockMoney.vue");
const lock_money = () => import(/* webpackChunkName: "lock_money" */ "@/components/lock_money/lock_money.vue"); //产品管理


//商城
const Shop = () => import(/* webpackChunkName: "shop" */ "./views/Shop.vue");
const product = () => import(/* webpackChunkName: "shop" */ "@/components/shop/product.vue"); //产品管理
const addproduct = () => import(/* webpackChunkName: "shop" */ "@/components/shop/addproduct.vue"); //添加商品
const addLockProduct = () => import(/* webpackChunkName: "shop" */ "@/components/shop/addLockProduct.vue"); //添加商品
const add_vipproduct = () => import(/* webpackChunkName: "shop" */ "@/components/shop/add_Vipproduct.vue"); //添加会员商品
const productcate = () => import(/* webpackChunkName: "shop" */ "@/components/shop/productcate.vue"); //商品分类
const addproductcate = () => import(/* webpackChunkName: "shop" */ "@/components/shop/addproductcate.vue"); ////添加商品分类   弹出
const sku = () => import(/* webpackChunkName: "shop" */ "@/components/shop/sku.vue"); ////sku
const addsku = () => import(/* webpackChunkName: "shop" */ "@/components/shop/addsku.vue"); ////sku 弹出
const review = () => import(/* webpackChunkName: "shop" */ "@/components/shop/review.vue"); ////评论
const addreview = () => import(/* webpackChunkName: "shop" */ "@/components/shop/addreview.vue"); ////评论   弹出
const importproduct = () =>
  import(
    /* webpackChunkName: "shop" */
    "@/components/shop/import/productimport.vue"
  );
const limitset = () =>
  import(
    /* webpackChunkName: "shop" */
    "@/components/shop/limit/limit_set.vue"
  ); //限时特惠设置

const gift_card = () => import(/* webpackChunkName: "shop" */ "@/components/shop/gift/gift_card.vue"); //礼品卡管理
const gift_card_edit = () => import(/* webpackChunkName: "shop" */ "@/components/shop/gift/gift_card_edit"); //礼品卡编辑

const event = () =>
  import(
    /* webpackChunkName: "shop" */
    "@/components/shop/event/event_shop.vue"
  ); //积分兑换
const card = () => import(/* webpackChunkName: "shop" */ "@/components/shop/card/card.vue");

const card_in = () =>
  import(
    /* webpackChunkName: "shop" */
    "@/components/shop/card/card_import.vue"
  );

const upgrade = () =>
  import(
    /* webpackChunkName: "shop" */
    "@/components/shop/upgrade/upgrade.vue"
  ); //会员费消费升级管理
const shopcart = () =>
  import(
    /* webpackChunkName: "shop" */
    "@/components/shop/shop-cart/shop-cart.vue"
  ); //购物车
//内容付费系统
const course = () =>
  import(
    /* webpackChunkName: "supplier" */
    "@/components/shop/course/course.vue"
  );
const lesson = () =>
  import(
    /* webpackChunkName: "supplier" */
    "@/components/shop/course/lesson.vue"
  );
const add_course = () =>
  import(
    /* webpackChunkName: "supplier" */
    "@/components/shop/course/add_course.vue"
  );
const course_cate = () =>
  import(
    /* webpackChunkName: "supplier" */
    "@/components/shop/course/cate.vue"
  );
const course_stage = () =>
  import(
    /* webpackChunkName: "supplier" */
    "@/components/shop/course/stage.vue"
  );
const agent = () => import(/* webpackChunkName: "shop" */ "@/components/user/agent/agent.vue"); ////评论   弹出

const checkagent = () =>
  import(
    /* webpackChunkName: "shop" */
    "@/components/user/agent/checkagent.vue"
  );

const checkagentdetails = () =>
  import(
    /* webpackChunkName: "shop" */
    "@/components/user/agent/checkAgentDetails.vue"
  );

//订单
// import Order from "./views/Order.vue"; //订单
const Order = () => import(/* webpackChunkName: "order" */ "./views/Order.vue");
const order = () => import(/* webpackChunkName: "order" */ "@/components/order/order.vue"); ////订单
const addorder = () => import(/* webpackChunkName: "order" */ "@/components/order/addorder.vue"); ////查看订单
const printorder = () => import(/* webpackChunkName: "order" */ "@/components/order/printorder.vue"); ////打印订单
const printreceipt = () => import(/* webpackChunkName: "order" */ "@/components/order/printreceipt.vue"); ////打印订单

const printtemplate = () =>
  import(
    /* webpackChunkName: "order" */
    "@/components/order/printtemplate.vue"
  ); ////打印电子面单
const batchPrintTemplate = () =>
  import(
    /* webpackChunkName: "order" */
    "@/components/order/batchPrintTemplate.vue"
  ); ////打印电子面单
const returned = () => import(/* webpackChunkName: "order" */ "@/components/order/returned.vue"); ////退货
const addreturned = () => import(/* webpackChunkName: "order" */ "@/components/order/addreturned.vue"); ////退货

const delivery_import = () =>
  import(
    /* webpackChunkName: "order" */
    "@/components/order/delivery_import.vue"
  );
const Banner = () => import(/* webpackChunkName: "order" */ "./views/Banner.vue");
const banner = () => import(/* webpackChunkName: "order" */ "@/components/banner/banner.vue");

import Plugins from "./views/Plugin.vue"; //插件guess_ls
const guess = () => import(/* webpackChunkName: "plugin" */ "@/components/plugin/guess.vue"); //猜猜乐
const guess_ls = () => import(/* webpackChunkName: "plugin" */ "@/components/plugin/guess_ls.vue"); //猜猜乐流水
const guess_war = () => import(/* webpackChunkName: "plugin" */ "@/components/plugin/guess_war.vue"); //猜猜乐赛季

const early = () => import(/* webpackChunkName: "plugin" */ "@/components/plugin/early.vue"); //早起签到
const early_ls = () => import(/* webpackChunkName: "plugin" */ "@/components/plugin/early_ls.vue"); //早起签到流水
const early_war = () => import(/* webpackChunkName: "plugin" */ "@/components/plugin/early_war.vue"); //早起签到赛季

const finger = () => import(/* webpackChunkName: "plugin" */ "@/components/plugin/finger.vue"); //早起签到
const finger_war = () => import(/* webpackChunkName: "plugin" */ "@/components/plugin/finger_war.vue"); //猜拳赛季
const turntable = () => import(/* webpackChunkName: "plugin" */ "@/components/plugin/turntable.vue"); //大转盘

const turntable_set = () =>
  import(
    /* webpackChunkName: "plugin" */
    "@/components/plugin/turntable_set.vue"
  ); //大转盘

const IM = () => import(/* webpackChunkName: "IM" */ "./views/Im.vue"); //腾迅云聊天

const im = () => import(/* webpackChunkName: "IM" */ "@/components/im/im.vue"); //腾迅云聊天

const imuserlist = () => import(/* webpackChunkName: "mail" */ "@/components/im/im_userlist.vue"); //im素材
const immaterial = () => import(/* webpackChunkName: "mail" */ "@/components/im/im_material.vue"); //im素材
const robot = () => import(/* webpackChunkName: "mail" */ "@/components/im/robot.vue"); //im机器人
const redirect = () => import(/* webpackChunkName: "redirect" */ "./views/redirect.vue"); //kong moban

//TBK
const TB = () => import(/* webpackChunkName: "TB" */ "./views/TB.vue"); //淘宝客
const tbinfo = () => import(/* webpackChunkName: "TB" */ "@/components/taobao/tbinfo.vue"); //淘宝好卷清单
const tbsort = () => import(/* webpackChunkName: "TB" */ "@/components/taobao/tbsort.vue"); //淘宝好卷清单

//Page
const Page = () => import(/* webpackChunkName: "Page" */ "./views/Page.vue");
const vip = () => import(/* webpackChunkName: "TB" */ "@/components/page/vip.vue");
const sign = () => import(/* webpackChunkName: "TB" */ "@/components/page/sign.vue");
const coupon = () => import(/* webpackChunkName: "TB" */ "@/components/page/coupon.vue");
const coupon_xfhb = () => import(/* webpackChunkName: "TB" */ "@/components/page/coupon_1.vue");
const merchant = () => import(/* webpackChunkName: "TB" */ "@/components/page/merchant.vue");
const page_member = () => import(/* webpackChunkName: "TB" */ "@/components/page/member.vue");
const lifecenter = () => import(/* webpackChunkName: "TB" */ "@/components/page/lifecenter.vue");

const platoon_index = () => import(/* webpackChunkName: "TB" */ "@/components/page/platoon/index.vue");
const platoon_detail = () => import(/* webpackChunkName: "TB" */ "@/components/page/platoon/detail.vue");
const platoon_reward = () => import(/* webpackChunkName: "TB" */ "@/components/page/platoon/reward.vue");
const footprint = () =>
  import(
    /* webpackChunkName: "TB" */
    "@/components/page/footprint/footprint.vue"
  );
const uploadpic = () => import(/* webpackChunkName: "TB" */ "@/components/page/pic/pic.vue");
const piccate = () => import(/* webpackChunkName: "TB" */ "@/components/page/pic/cate.vue");
const address = () => import(/* webpackChunkName: "TB" */ "@/components/page/address/address.vue");

const advert_slide = () => import(/* webpackChunkName: "Form" */ "@/components/advert/advert.vue"); //广告幻灯片

//Auto
const Auto = () => import(/* webpackChunkName: "TB" */ "./views/Auto.vue");
const auto = () => import(/* webpackChunkName: "TB" */ "@/components/auto/auto.vue");
const excel = () => import(/* webpackChunkName: "TB" */ "@/components/auto/excel_list.vue");
const excel_detail = () => import(/* webpackChunkName: "TB" */ "@/components/auto/excel_detail.vue");

const Supplier = () => import(/* webpackChunkName: "supplier" */ "./views/Supplier.vue");
const SupplierShops = () =>
  import(
    /* webpackChunkName: "supplier" */
    "@/components/supplier/SupplierShops.vue"
  );
const SupplierOrder = () =>
  import(
    /* webpackChunkName: "supplier" */
    "@/components/supplier/SupplierOrder.vue"
  );
const SupplierComplaint = () =>
  import(
    /* webpackChunkName: "supplier" */
    "@/components/supplier/SupplierComplaint.vue"
  );
const SupplierPromotion = () =>
  import(
    /* webpackChunkName: "supplier" */
    "@/components/supplier/SupplierPromotion.vue"
  );

// Dapp插件
import Dapp from "./views/Dapp.vue"; //插件guess_ls
const dapp_product = () => import(/* webpackChunkName: "plugin" */ "@/components/dapp/dapp_product"); // dapp产品
const dapp_order = () => import(/* webpackChunkName: "plugin" */ "@/components/dapp/dapp_order"); // dapp订单
const dapp_grade = () => import(/* webpackChunkName: "plugin" */ "@/components/dapp/dapp_grade"); // dapp等级
const dapp_team = () => import(/* webpackChunkName: "plugin" */ "@/components/dapp/dapp_team"); // dapp团队奖
const dapp_order_detail = () =>
  import(
    /* webpackChunkName: "plugin" */
    "@/components/dapp/dapp_order_detail"
  ); // dapp等级


const Reserve = () => import(/* webpackChunkName: "reserve" */ "./views/Reserve.vue");
const store = () => import(/* webpackChunkName: "reserve" */ "@/components/reserve/store.vue"); //预约门店

const advert = () => import(/* webpackChunkName: "config" */ "@/components/config/advert.vue"); //设置

//表单插件
const Forms = () => import(/* webpackChunkName: "Form" */ "./views/plugin/Form.vue");
const bdList = () =>
  import(
    /* webpackChunkName: "Form" */
    "@/components/plug/form/bd-list/bd-list.vue"
  );
const bdFieldList = () =>
  import(
    /* webpackChunkName: "Form" */
    "@/components/plug/form/bd-field-list/bd-field-list.vue"
  );
const bdMsg = () =>
  import(
    /* webpackChunkName: "Form" */
    "@/components/plug/form/bd-msg/bd-msg.vue"
  );

//分类
const Classify = () => import(/* webpackChunkName: "Form" */ "./views/plugin/Classify.vue");
const category = () =>
  import(
    /* webpackChunkName: "Form" */
    "@/components/plug/classify/category.vue"
  );
const classField = () =>
  import(
    /* webpackChunkName: "Form" */
    "@/components/plug/classify/classField.vue"
  );
const classinfo = () =>
  import(
    /* webpackChunkName: "Form" */
    "@/components/plug/classify/classifyinfo.vue"
  );
const classcomments = () =>
  import(
    /* webpackChunkName: "Form" */
    "@/components/plug/classify/comments.vue"
  );
const classreserve = () =>
  import(
    /* webpackChunkName: "Form" */
    "@/components/plug/classify/reserve.vue"
  );
//多多客
const DDK = () => import(/* webpackChunkName: "DDK" */ "./views/DDK.vue");
const ddk_goods = () => import(/* webpackChunkName: "DDK" */ "@/components/ddk/ddk_goods.vue");
const ddk_promote = () => import(/* webpackChunkName: "DDK" */ "@/components/ddk/ddk_promote.vue");

// 骑手
const Rider = () => import(/* webpackChunkName: "Rider" */ "./views/Rider/rider.vue");
const RiderLists = () => import(/* webpackChunkName: "Rider" */ "@/components/rider/lists.vue");
const Riderapply = () => import(/* webpackChunkName: "Rider" */ "@/components/rider/apply.vue");

const dataV = () => import(/* webpackChunkName: "dataV" */ "@/views/dataV.vue");
const datav_body = () => import(/* webpackChunkName: "dataV" */ "@/components/datav/dataV.vue");

//云仓
const Yc = () => import(/* webpackChunkName: "yc" */ "./views/Yc.vue");
const ycOrder = () => import(/* webpackChunkName: "yc" */ "@/components/yc/order/yc-order.vue");

const ycAppealOrder = () =>
  import(
    /* webpackChunkName: "yc" */
    "@/components/yc/appeal-order/yc-appeal-order.vue"
  );
const ycStock = () => import(/* webpackChunkName: "yc" */ "@/components/yc/stock/stock.vue");
const ycTeam = () => import(/* webpackChunkName: "yc" */ "@/components/yc/team/team.vue");

// 打印机
const Print = () => import(/* webpackChunkName: "Print" */ "./views/Print.vue");
const PrintLists = () => import(/* webpackChunkName: "Print" */ "@/components/print/lists.vue");

//直播
const Live = () => import(/* webpackChunkName: "TB" */ "./views/Live"); //淘宝客
const livelist = () => import(/* webpackChunkName: "TB" */ "@/components/live/list.vue");
const liveapply = () => import(/* webpackChunkName: "TB" */ "@/components/live/apply.vue");
const livepresent = () => import(/* webpackChunkName: "TB" */ "@/components/live/present.vue");
const liveorder = () => import(/* webpackChunkName: "TB" */ "@/components/live/order.vue");
const liveindex = () => import(/* webpackChunkName: "TB" */ "@/components/live/index.vue");
const livefile = () => import(/* webpackChunkName: "TB" */ "@/components/live/file.vue");
const livecomment = () => import(/* webpackChunkName: "TB" */ "@/components/live/comment.vue");
const live_control = () => import(/* webpackChunkName: "Form" */ "@/components/live/live_control.vue");

//插件首页
const pluginIndex = () => import(/* webpackChunkName: "pluginIndex" */ "./views/plugin-index"); //淘宝客

//竞拍
const auctionRank = () =>
  import(
    /* webpackChunkName: "TB" */
    "@/components/shop/auction/auctionrank.vue"
  );
const auctionOrder = () =>
  import(
    /* webpackChunkName: "TB" */
    "@/components/shop/auction/auctionOrder.vue"
  );


const indexList = () =>
  import(
    /* webpackChunkName: "Page" */
    "@/components/page/index/index-list/index-list.vue"
  );

const moduleedit = () => import(/* webpackChunkName: "Page" */ "@/components/page/module/module.vue");

//拼购插件
const GroupBuy = () => import(/* webpackChunkName: "Form" */ "./views/GroupBuy.vue");
const classify = () => import(/* webpackChunkName: "Form" */ "@/components/groupbuy/classify.vue");
const phase = () => import(/* webpackChunkName: "Form" */ "@/components/groupbuy/phase.vue");
const people = () => import(/* webpackChunkName: "Form" */ "@/components/groupbuy/people.vue");
const groupBuy = () => import(/* webpackChunkName: "Form" */ "@/components/groupbuy/groupBuy.vue");

//任务模块
const Task = () => import(/* webpackChunkName: "Form" */ "./views/Task.vue");
const taskcate = () =>
  import(
    /* webpackChunkName: "Form" */
    "@/components/task/taskcate/taskcate.vue"
  );
const tasklist = () =>
  import(
    /* webpackChunkName: "Form" */
    "@/components/task/tasklist/tasklist.vue"
  );
const dotask = () => import(/* webpackChunkName: "Form" */ "@/components/task/dotask/dotask.vue");
const taskreward = () => import(/* webpackChunkName: "Form" */ "@/components/task/taskreward/taskreward.vue"); //任务奖励


//积分分类
const integral_cate = () =>
  import(
    /* webpackChunkName: "Form" */
    "@/components/shop/integral/integral_cate.vue"
  );

// 微CRM
const has_ployee = () => import(/* webpackChunkName: "Form" */ "@/components/crm/has_ployee.vue");
const crm_client = () => import(/* webpackChunkName: "Form" */ "@/components/crm/crm_client.vue");

const public_user = () => import(/* webpackChunkName: "Form" */ "@/components/crm/public_user.vue");

const character = () =>
  import(
    /* webpackChunkName: "admin" */
    "@/components/plugin/character/character.vue"
  ); //人物

const characterField = () =>
  import(
    /* webpackChunkName: "admin" */
    "@/components/plugin/character/characterField.vue"
  ); //人物字段管理

const characterMsg = () =>
  import(
    /* webpackChunkName: "admin" */
    "@/components/plugin/character/characterMsg.vue"
  ); // 人物查看

const characterInfo = () =>
  import(
    /* webpackChunkName: "admin" */
    "@/components/plugin/character/characterInfo.vue"
  ); // 人物查看
const payment = () => import(/* webpackChunkName: "admin" */ "@/components/user/payment.vue"); // 支付记录

//语言包
const language_list = () => import(/* webpackChunkName: "admin" */ "@/components/page/language/language_list.vue");

const language_type = () => import(/* webpackChunkName: "admin" */ "@/components/page/language/language_type.vue");

const language_import = () => import(/* webpackChunkName: "admin" */ "@/components/page/language/language_import.vue");


// 音频模块

const product_import = () => import(/* webpackChunkName: "Form" */ "@/components/shop/product_import.vue");

const face_list = () => import(/* webpackChunkName: "User" */ "@/components/user/face/face_list.vue");



const messageList = () => import(/* webpackChunkName: "user" */ "@/components/imteam/messageList.vue");
const groupUserList = () => import(/* webpackChunkName: "user" */ "@/components/imteam/groupUserList.vue");
const checkRecord = () => import(/* webpackChunkName: "user" */ "@/components/imteam/checkRecord.vue");
const packetList = () => import(/* webpackChunkName: "user" */ "@/components/imteam/packetList.vue");
const groupPacketDetail = () => import(/* webpackChunkName: "user" */ "@/components/imteam/groupPacketDetail.vue");
const prvitePacketList = () => import(/* webpackChunkName: "user" */ "@/components/imteam/prvitePacketList.vue");
const import_recharge = () => import(/* webpackChunkName: "user" */ "@/components/user/import_recharge.vue");
const news_comment = () => import(/* webpackChunkName: "user" */ "@/components/news/news_comment.vue");

const newIm = () => import(/* webpackChunkName: "Form" */ "@/components/im_new/newIm.vue");

const difengyun_address = () => import(/* webpackChunkName: "Form" */ "@/components/difengyun/address.vue");

const jd_pay = () => import(/* webpackChunkName: "Form" */ "@/components/plug/jingdong/jd_pay.vue");
//在线提现记录
const online_withdrawal = () => import(/* webpackChunkName: "Form" */ "@/components/user/online_withdrawal.vue");
const recharge_moeny = () => import(/* webpackChunkName: "user" */ "@/components/user/recharge_moeny.vue"); //充值

//连锁外卖


//音视频流量
const video_traffic = () => import("@/components/page/video_traffic.vue");
//企业运营

//开票订单
const order_invoice = () => import("@/components/order/order_invoice.vue");
//工作时间


const tutor_list = () => import("@/components/tutor/tutor_list.vue");
const tutor_case = () => import("@/components/tutor/tutor_case.vue");
const tutor_comment = () => import("@/components/tutor/tutor_comment.vue");

const upgrade_cate = () => import("@/components/shop/upgrade/upgrade_cate.vue");


//抖音
const Douyin = () => import("./views/Douyin.vue");
const account_manage = () => import("@/components/douyin/account_manage.vue");



//进销库存
const operation_stock = () => import("@/components/shop/stock/operation_stock.vue");
const product_stock = () => import("@/components/shop/stock/product_stock.vue");
const query_stock = () => import("@/components/shop/stock/query_stock.vue");
const allocation_stock = () => import("@/components/shop/stock/allocation_stock.vue");
const return_stock = () => import("@/components/shop/stock/return_stock.vue");
const refund_stock = () => import("@/components/shop/stock/refund_stock.vue");
const personnel_list = () => import("@/components/tutor/personnel_list.vue");


//本地图库
const local_gallery = () => import("@/components/page/pic/local_gallery.vue");

//商学院
const College = () => import("./views/College.vue");
const college_list = () => import("@/components/college/college_list.vue");
const college_edit = () => import("@/components/college/college_edit.vue");
const college_result_edit = () => import("@/components/college/college_result_edit.vue");
const college_user_record = () => import("@/components/college/college_user_record.vue");
const college_question = () => import("@/components/college/college_question.vue");

//同城活动
const activity_list = () => import("@/components/page/activity_list.vue");
const activity_edit = () => import("@/components/page/activity_edit.vue");

//素材库
const Material = () => import("./views/Material.vue");
const material_list = () => import("@/components/material/material_list.vue");
const material_cate = () => import("@/components/material/material_cate.vue");

//跑腿
const Errand = () => import("./views/Errand.vue");
const errand_buy_cate = () => import("@/components/plug/errand/buy_cate.vue");

const Dz = () => import("./views/Dz.vue");
const red_list = () => import("@/components/dz/red_list.vue");
const order_refund = () => import("@/components/order/order_refund.vue");
const pk_list = () => import("@/components/dz/pk_list.vue");


const dz_scenic_setting = () => import("@/components/dz/scenic_setting.vue"); //景区设置
const dz_red_setting = () => import("@/components/dz/red_setting.vue"); //红包设置
const dz_scenic_record = () => import("@/components/dz/scenic_record.vue"); //景区记录
const dz_red_reward = () => import("@/components/dz/red_reward.vue"); //红包奖励记录
const dz_user_activated = () => import("@/components/dz/user_activated.vue"); //用户激活记录
const dz_user_referral = () => import("@/components/dz/user_referral.vue"); //用户推荐记录
const dz_month_board = () => import("@/components/dz/month_board.vue"); //月排行榜
const dz_week_board = () => import("@/components/dz/week_board.vue"); //周排行
const dz_punch_search = () => import("@/components/dz/punch_search.vue"); //周排行
Vue.use(Router);
export default new Router({
  mode: "history",
  routes: [
    { 
      path: "/",
      component: Index,
      meta: {
        requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
      },
      children: [
        {
          path: "/",
          meta: {
            requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
          },
          component: index,
        },
      ],
    },
    {
      path: "/index",
      meta: {
        requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
      },
      component: Index,
      children: [
        {
          path: "/",
          meta: {
            requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
          },
          component: index,
        },
        {
          path: "index",
          meta: {
            requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
          },
          component: index,
        },
        {
          path: "dz",
          meta: {
            requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
          },
          component: Dz,
          children: [
            {
              path: "red_list",
              component: red_list,
            },
            {
              path: "material_cate",
              component: material_cate,
            },
            {
              path: "pk_list",
              component: pk_list,
            },
            {
              path: "scenic_setting",
              component: dz_scenic_setting,
            },
            {
              path: "red_setting",
              component: dz_red_setting,
            },
            {
              path: "scenic_record",
              component: dz_scenic_record,
            },
            {
              path: "red_reward",
              component: dz_red_reward,
            },
            {
              path: "user_activated",
              component: dz_user_activated,
            },
            {
              path: "user_referral",
              component: dz_user_referral,
            },
            {
              path: "month_board",
              component: dz_month_board,
            },
            {
              path: "week_board",
              component: dz_week_board,
            },
            {
              path: "punch_search",
              component: dz_punch_search,
            },
            {
              path: "ticket_price",
              component: (resolve) => require(["@/components/dz/ticket_price"], resolve),
            },
            {
              path: "rights_list",
              component: (resolve) => require(["@/components/dz/rights_list"], resolve),
            },
            {
              path: "rights_record",
              component: (resolve) => require(["@/components/dz/rights_record"], resolve),
            },
            {
              path: "rent_list",
              component: (resolve) => require(["@/components/dz/rent_list"], resolve),
            },

            {
              path: "rent_record",
              component: (resolve) => require(["@/components/dz/rent_record"], resolve),
            },
            {
              path: "transaction_list",
              component: (resolve) => require(["@/components/dz/transaction_list"], resolve),
            },
            {
              path: "transaction_order",
              component: (resolve) => require(["@/components/dz/transaction_order"], resolve),
            },

            {
              path: "rights_cate",
              component: (resolve) => require(["@/components/dz/rights_cate"], resolve),
            },

            {
              path: "rent_cate",
              component: (resolve) => require(["@/components/dz/rent_cate"], resolve),
            },
          ]
        },
        {
          path: "material",
          meta: {
            requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
          },
          component: Material,
          children: [
            {
              path: "material_list",
              component: material_list,
            },
            {
              path: "material_cate",
              component: material_cate,
            },
          ]
        },
        {
          path: "college",
          meta: {
            requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
          },
          component: College,
          children: [
            {
              path: "college_list",
              component: college_list,
            },
            {
              path: "college_edit",
              component: college_edit,
            },
            {
              path: "college_result_edit",
              component: college_result_edit,
            },
            {
              path: "college_user_record",
              component: college_user_record,
            },
            {
              path: "college_question",
              component: college_question,
            },

          ]
        },

      

        {
          path: "admin",
          meta: {
            requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
          },
          component: Admin,
          children: [
            {
              path: "/",
              component: log,
            },
            {
              path: "log",
              component: log,
            },
            {
              path: "admin",
              component: admin,
            },
            {
              path: "menu",
              component: Menu,
            },
            {
              path: "role",
              component: role,
            },
            {
              path: "roleAdd",
              component: roleAdd,
            },
            {
              path: "roleEdit",
              component: roleEdit,
            },
            {
              path: "reward",
              component: reward,
            },
            {
              path: "plugin",
              component: plugin,
            },
            {
              path: "pluginEdit",
              component: pluginEdit,
            },
            {
              path: "cuxiao",
              component: cuxiao,
            },
            {
              path: "mymodel",
              component: mymodel,
            },
            {
              path: "clear",
              component: clear,
            },
            {
              path: "jd_pay",
              component: jd_pay,
            },
          ],
        },
        {
          path: "page",
          meta: {
            requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
          },
          component: Page,
          children: [
            {
              path: "vip",
              component: vip,
            },
            {
              path: "sign",
              component: sign,
            },
            {
              path: "coupon",
              component: coupon,
            },
            {
              path: "coupon_xfhb",
              component: coupon_xfhb,
            },
            {
              path: "merchant",
              component: merchant,
            },
            {
              path: "member",
              component: page_member,
            },
            {
              path: "robot",
              component: robot,
            },
            {
              path: "immaterial",
              component: immaterial,
            },
            {
              path: "imuserlist",
              component: imuserlist,
            },
            {
              path: "lifecenter",
              component: lifecenter,
            },
            {
              path: "platoon_index",
              component: platoon_index,
            },
            {
              path: "platoon_detail",
              component: platoon_detail,
            },
            {
              path: "platoon_reward",
              component: platoon_reward,
            },
            {
              path: "pic",
              component: uploadpic,
            },
            {
              path: "pic/cate",
              component: piccate,
            },
            {
              path: "index-list", //首页列表 模板管理
              component: indexList,
            },

            {
              path: "module",
              component: moduleedit,
            },
            {
              path: "address",
              component: address,
            },
            {
              path: "footprint",
              component: footprint,
            },
            {
              path: "has_ployee",
              component: has_ployee,
            },
            {
              path: "public_user",
              component: public_user,
            },
            {
              path: "crm_client",
              component: crm_client,
            },
            {
              path: "language_list",
              component: language_list,
            },
            {
              path: "language_type",
              component: language_type,
            },
            {
              path: "language_import",
              component: language_import,
            },
            {
              path: "advert_slide",
              component: advert_slide,
            },
            {
              path: "dfy_address",
              component: difengyun_address,
            },
            {
              path: "video_traffic",
              component: video_traffic,
            },
            {
              path: "tutor_list",
              component: tutor_list,
            },
            {
              path: "tutor_case",
              component: tutor_case,
            },
            {
              path: "tutor_comment",
              component: tutor_comment,
            },
            {
              path: "personnel_list",
              component: personnel_list,
            },
            {
              path: "local_gallery",
              component: local_gallery,
            },
            {
              path: "activity_list",
              component: activity_list,
            },
            {
              path: "activity_edit",
              component: activity_edit,
            },
          ],
        },
        {
          path: "config",
          meta: {
            requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
          },
          component: Config,
          children: [
            {
              path: "/",
              component: config,
            },
            {
              path: "config",
              component: config,
            },
            {
              path: "home",
              component: home,
            },
            {
              path: "member",
              component: member,
            },
            {
              path: "qr",
              component: qr,
            },
            {
              path: "pay",
              component: pay,
            },
            {
              path: "class",
              component: class_list,
            },
            {
              path: "smscz",
              component: smscz,
            },
            {
              path: "smsjl",
              component: smsjl,
            },
            {
              path: "mission",
              component: mission,
            },
            {
              path: "lgconfig",
              component: lgconfig,
            },
            {
              path: "advert",
              component: advert,
            },
            {
              path: "red_rule",
              component: red_rule,
            },
          ],
        },
        {
          path: "mail",
          meta: {
            requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
          },
          component: Mail,
          children: [
            {
              path: "/",
              component: mail,
            },
            {
              path: "mail",
              component: mail,
            },
            {
              path: "area",
              component: area,
            },
            {
              path: "addarea",
              component: addarea,
            },
            {
              path: "extract",
              component: extract,
            },
            {
              path: "addextract",
              component: addextract,
            },
            {
              path: "extract_control",
              component: extract_control,
            },
          ],
        },
        {
          path: "imteam",
          meta: {
            requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
          },
          component: IMteam,
          children: [
            {
              path: "/",
              component: team,
            },
            {
              path: "team",
              component: team,
            },
            {
              path: "teamUser",
              component: teamUser,
            },
            {
              path: "groupUserList",
              component: groupUserList,
            },
            {
              path: "checkRecord",
              component: checkRecord,
            },
            {
              path: "packetList",
              component: packetList,
            },
            {
              path: "groupPacketDetail",
              component: groupPacketDetail,
            },
            {
              path: "prvitePacketList",
              component: prvitePacketList,
            },
            {
              path: "messageList",
              component: messageList,
            },

          ],
        },
        {
          path: "wechat",
          meta: {
            requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
          },
          component: Wechat,
          children: [
            {
              path: "/",
              component: wxmenu,
            },
            {
              path: "wxinfo",
              component: wxinfo,
            },
            {
              path: "wxfollow",
              component: wxfollow,
            },
            {
              path: "addwxfollow",
              component: addwxfollow,
            },
            {
              path: "wxtext",
              component: wxtext,
            },
            {
              path: "addwxtext",
              component: addwxtext,
            },
            {
              path: "wxmenu",
              component: wxmenu,
            },
            {
              path: "addwxmenu",
              component: addwxmenu,
            },
            {
              path: "material",
              component: material,
            },
            {
              path: "addmaterial",
              component: addmaterial,
            },
            {
              path: "templet",
              component: templet,
            },
            {
              path: "addtemplet",
              component: addtemplet,
            },
            {
              path: "information",
              component: information,
            },
            {
              path: "addinformation",
              component: addinformation,
            },
            {
              path: "wxsms",
              component: wxsms,
            },
            {
              path: "firstfollow",
              component: firstFollow,
            },
          ],
        },
        {
          path: "news",
          meta: {
            requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
          },
          component: News,
          children: [
            {
              path: "/",
              component: news,
            },
            {
              path: "news",
              component: news,
            },
            {
              path: "addnews",
              component: addnews,
            },
            {
              path: "newscate",
              component: newscate,
            },
            {
              path: "addnewscate",
              component: addnewscate,
            },
            {
              path: "packet",
              component: packet,
            },
            {
              path: "packet_ls",
              component: packet_ls,
            },
            {
              path: "newss",
              component: newss,
            },
            {
              path: "agreement",
              component: agreement,
            },
            {
              path: "news_comment",
              component: news_comment,
            },
          ],
        },
        {
          path: "help",
          meta: {
            requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
          },
          component: Help,
          children: [
            {
              path: "actionlist",
              component: actionlist,
            },
            {
              path: "help",
              component: help,
            },

            {
              path: "helpuser",
              component: helpuser,
            },
          ],
        },
        {
          path: "supplier",
          meta: {
            requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
          },
          component: Supplier,
          children: [
            {
              path: "/",
              component: SupplierShops,
            },
            {
              path: "suppliershops",
              component: SupplierShops,
            },
            {
              path: "supplierorder",
              component: SupplierOrder,
            },
            {
              path: "suppliercomplaint",
              component: SupplierComplaint,
            },
            {
              path: "supplierpromotion",
              component: SupplierPromotion,
            },
            {
              path: "supplierslide",
              component: supplierslide,
            },
          ],
        },
        {
          path: "auto",
          meta: {
            requireAuth: true,
          },
          component: Auto,
          children: [
            {
              path: "/",
              component: auto,
            },
            {
              path: "excel",
              component: excel,
            },
            {
              path: "detail",
              component: excel_detail,
            },
          ],
        },

        {
          path: "user",
          meta: {
            requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
          },
          component: User,
          children: [
            {
              path: "/",
              component: user,
            },
            {
              path: "user",
              component: user,
            },
            {
              path: "adduser",
              component: adduser,
            },
            {
              path: "money",
              component: money,
            },
            {
              path: "supplier",
              component: supplier,
            },
            {
              path: "checksupplierdetails",
              component: checksupplierdetails,
            },
            {
              path: "checksupplier",
              component: checksupplier,
            },
            {
              path: "recharge",
              component: recharge,
            },
            {
              path: "addrecharge",
              component: addrecharge,
            },
            {
              path: "recharge_import",
              component: recharge_import,
            },
            {
              path: "editrecharge",
              component: editrecharge,
            },
            {
              path: "withdraw_ye",
              component: withdraw_ye,
            },
            {
              path: "addwithdraw_ye",
              component: addwithdraw_ye,
            },
            {
              path: "withdraw_jf",
              component: withdraw_jf,
            },
            {
              path: "addwithdraw_jf",
              component: addwithdraw_jf,
            },
            {
              path: "withdraw_yj",
              component: withdraw_yj,
            },
            {
              path: "addwithdraw_yj",
              component: addwithdraw_yj,
            },
            {
              path: "msg",
              component: msg,
            },
            {
              path: "msg_edit",
              component: msg_edit,
            },
            {
              path: "withdraw_ye_edit",
              component: withdraw_ye_edit,
            },
            {
              path: "letter",
              component: letter,
            },
            {
              path: "user_info",
              component: user_info,
            },
            {
              path: "user_rank",
              component: user_rank,
            },
            {
              path: "user_import",
              component: user_import,
            },
            {
              path: "user_in_record",
              component: user_in_record,
            },
            {
              path: "user_complaint",
              component: user_complaint,
            },
            {
              path: "agent",
              component: agent,
            },
            {
              path: "checkagent",
              component: checkagent,
            },
            {
              path: "checkagentdetails",
              component: checkagentdetails,
            },
            {
              path: "account",
              component: deal_account,
            },
            {
              path: "service",
              component: service,
            },
            {
              path: "payment",
              component: payment,
            },
            {
              path: "order_refund",
              component: order_refund,
            },
            {
              path: "face_list",
              component: face_list,
            },
            {
              path: "import_recharge",
              component: import_recharge,
            },
            {
              path: "online_withdrawal",
              component: online_withdrawal,
            },
            {
              path: "recharge_moeny",
              component: recharge_moeny,
            },
          ],
        },
        {
          path:"lock_money",
          meta:{
            requireAuth:true,
          },
          component:LockMoney,
          children:[
            {
              path: "/",
              component: lock_money,
            },
            {
              path: "lock_money",
              component: lock_money,
            },
          ]
        },
        {
          path: "shop",
          meta: {
            requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的  checkagentdetails
          },
          component: Shop,
          children: [
            {
              path: "/",
              component: product,
            },
            {
              path: "product",
              component: product,
            },
            {
              path: "addproduct",
              component: addproduct,
            },
            {
              path: "addLockProduct",
              component: addLockProduct,
            },
            {
              path: "add_vipproduct",
              component: add_vipproduct,
            },
            {
              path: "productcate",
              component: productcate,
            },
            {
              path: "addproductcate",
              component: addproductcate,
            },
            {
              path: "sku",
              component: sku,
            },
            {
              path: "addsku",
              component: addsku,
            },
            {
              path: "review",
              component: review,
            },
            {
              path: "addreview",
              component: addreview,
            },
            {
              path: "import",
              component: importproduct,
            },

            {
              path: "limit/set", //限时特惠设置
              component: limitset,
            },

            {
              path: "event", //活动商品页
              component: event,
            },
            {
              path: "card", //卡密插件
              component: card,
            },
            {
              path: "card_in", //卡密插件
              component: card_in,
            },
            {
              path: "course", //内容付费分类
              component: course,
            },
            {
              path: "course_cate", //课程分类
              component: course_cate,
            },
            {
              path: "course_stage", //课程集
              component: course_stage,
            },
            {
              path: "add_course", //课程集
              component: add_course,
            },
            {
              path: "course/set", //内容付费模板页
              component: lesson,
            },
            {
              path: "upgrade", //
              component: upgrade,
            },
            {
              path: "upgrade_cate", //
              component: upgrade_cate,
            },
            {
              path: "shopcart", //
              component: shopcart,
            },
            {
              path: "auctionRank",
              component: auctionRank,
            },
            {
              path: "auctionorder",
              component: auctionOrder,
            },
            {
              path: "integral_cate",
              component: integral_cate,
            },
            {
              path: "gift_card",
              component: gift_card,
            },
            {
              path: "gift_card_edit",
              component: gift_card_edit,
            },
            {
              path: "product_import",
              component: product_import,
            },
            {
              path: "operation_stock",
              component: operation_stock,
            },
            {
              path: "product_stock",
              component: product_stock,
            },
            {
              path: "query_stock",
              component: query_stock,
            },
            {
              path: "allocation_stock",
              component: allocation_stock,
            },
            {
              path: "return_stock",
              component: return_stock,
            },
            {
              path: "refund_stock",
              component: refund_stock,
            },
          ],
        },
        {
          path: "order",
          meta: {
            requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
          },
          component: Order,
          children: [
            {
              path: "/",
              component: order,
            },
            {
              path: "order",
              component: order,
            },
            {
              path: "addorder",
              component: addorder,
            },
            {
              path: "returned",
              name: "returned",
              component: returned,
            },
            {
              path: "addreturned",
              component: addreturned,
            },
            {
              path: "import",
              component: delivery_import,
            },
            {
              path: "order_invoice",
              component: order_invoice,
            },
          ],
        },

        {
          path: "plugin",
          meta: {
            requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
          },
          component: Plugins,
          children: [
            {
              path: "/",
              component: Plugins,
            },
            {
              path: "plugin",
              component: Plugins,
            },
            {
              path: "guess",
              component: guess,
            },
            {
              path: "guess_ls",
              component: guess_ls,
            },
            {
              path: "early",
              component: early,
            },
            {
              path: "early_ls",
              component: early_ls,
            },
            {
              path: "early_war",
              component: early_war,
            },
            {
              path: "finger_war",
              component: finger_war,
            },
            {
              path: "guess_war",
              component: guess_war,
            },
            {
              path: "finger",
              component: finger,
            },
            {
              path: "turntable",
              component: turntable,
            },
            {
              path: "turntable_set",
              component: turntable_set,
            },

            //人物
            {
              path: "character",
              component: character,
            },
            {
              path: "characterField",
              component: characterField,
            },
            {
              path: "characterMsg",
              component: characterMsg,
            },
            {
              path: "characterInfo",
              component: characterInfo,
            },
          ],
        },


        {
          path: "im",
          meta: {
            requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
          },
          component: im,
          children: [
            {
              path: "/",
              component: im,
            },
            {
              path: "im",
              component: im,
            },
          ],
        },
        {
          path: "banner",
          meta: {
            requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
          },
          component: Banner,
          children: [
            {
              path: "/",
              component: banner,
            },
            {
              path: "banner",
              component: banner,
            },
          ],
        },

        {
          path: "reserve",
          meta: {
            requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
          },
          component: Reserve,
          children: [
            {
              path: "/",
              component: store,
            },
            {
              path: "/store",
              component: store,
            },
          ],
        },
        {
          path: "form",
          meta: {
            requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
          },
          component: Forms,
          children: [
            {
              path: "/",
              component: bdList,
            },
            {
              path: "bd-list",
              component: bdList,
            },
            {
              path: "bd-field-list",
              component: bdFieldList,
            },
            {
              path: "bd-msg",
              component: bdMsg,
            },
          ],
        },
        {
          path: "classify",
          meta: {
            requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
          },
          component: Classify,
          children: [
            {
              path: "/",
              component: category,
            },
            {
              path: "classfield",
              component: classField,
            },
            {
              path: "info",
              component: classinfo,
            },
            {
              path: "comments",
              component: classcomments,
            },
            {
              path: "reserve",
              component: classreserve,
            },
          ],
        },
        {
          path: "ddk",
          meta: {
            requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
          },
          component: DDK,
          children: [
            {
              path: "/",
              component: ddk_goods,
            },
            {
              path: "ddk_goods",
              component: ddk_goods,
            },
            {
              path: "ddk_promote",
              component: ddk_promote,
            },
          ],
        },
        {
          path: "rider",
          meta: {
            requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
          },
          component: Rider,
          children: [
            {
              path: "/",
              component: RiderLists,
            },
            {
              path: "lists",
              component: RiderLists,
            },
            {
              path: "apply",
              component: Riderapply,
            },
          ],
        },
        
        {
          path: "print",
          meta: {
            requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
          },
          component: Print,
          children: [
            {
              path: "/",
              component: PrintLists,
            },
            {
              path: "lists",
              component: PrintLists,
            },
          ],
        },
        


      ],
    },
    {
      path: "/dataV",
      component: dataV,
      children: [
        {
          path: "/",
          component: datav_body,
        },
      ],
    },
    {
      path: "/plugin-index",
      component: pluginIndex,
    },
    {
      path: "/login",
      component: Login,
    },
    {
      path: "toLogon",
      redirect: "/login",
    },
    {
      path: "/redirect",
      component: redirect,
    },
    {
      path: "/printorder",
      meta: {
        requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
      },
      component: printorder,
    },
    {
      path: "/printreceipt",
      meta: {
        requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
      },
      component: printreceipt,
    },
    {
      path: "/im",
      meta: {
        requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
      },
      component: IM,
      children: [
        {
          path: "/",
          component: newIm,
        },
        {
          path: "im",
          component: newIm,
        },
        // {
        // 	path: 'newIm',
        // 	component: newIm,
        // },
      ],
    },

    {
      path: "/printtemplate",
      meta: {
        requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
      },
      component: printtemplate,
    },
    {
      path: "/batchPrintTemplate",
      meta: {
        requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
      },
      component: batchPrintTemplate,
    },

    {
      path: "*",
      redirect: "/index",
    },
  ],
});
